﻿using System;
using System.Globalization;

namespace Mvc.Models
{
    public static class ExtensionsToString
    {
         public static DateTime GetDate(this string input)
         {
             return DateTime.ParseExact(input, "dd-MM-yyyy", new CultureInfo("da-DK"));
         }
    }
}